package com.jshare.dao;

import java.util.List;

import com.jshare.entity.Tiezi;

public interface TieziDAO {

	//property constants
	public static final String TOPPIC = "toppic";
	public static final String TAGS = "tags";

	public abstract void save(Tiezi transientInstance);

	public abstract void delete(Tiezi persistentInstance);

	public abstract Tiezi findById(java.lang.Integer id);

	public abstract List findByExample(Tiezi instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByToppic(Object toppic);

	public abstract List findByTags(Object tags);

	public abstract List findAll();

	public abstract Tiezi merge(Tiezi detachedInstance);

	public abstract void attachDirty(Tiezi instance);

	public abstract void attachClean(Tiezi instance);
	
	public abstract List findByStartPos(int startPos , int pageSize);
}